<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.Vector,com.ejoysoft.wlanyz.business.Testtemplate,com.ejoysoft.wlanyz.business.Testpjmanage,com.ejoysoft.common.Constants,com.ejoysoft.common.exception.NoRightException" %>
<%@page import="sun.reflect.generics.tree.IntSignature"%>
<%@page import="com.ejoysoft.common.Format"%>
<%@ include file="../include/jsp/head.jsp"%>
<%
 String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Testpjmanage obj = new Testpjmanage(globa);
Vector<Testpjmanage> vctObj=obj.list1("",0,0);
	//获取当前页的记录条数
int intVct=(vctObj!=null&&vctObj.size()>0?vctObj.size():0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>测试项选择</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #F8F9FA;
}
body,td,th {
	font-size: 9pt;
	color: #111111;
}
-->
</style>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
<script src="../include/js/chkFrm.js"></script>
<script language="javascript">


function check(){
           var checkboxs = document.getElementsByName("strProjectName");
           window.returnValue=="";
           var flag=1;
           for(var i=0;i<checkboxs.length;i++){
                if(checkboxs[i].checked == true){
                	if(flag==1){
                		window.returnValue=window.returnValue+checkboxs[i].value;
                		flag=0;
                	}
                	else{
                		window.returnValue=window.returnValue+','+checkboxs[i].value;
                	}
                }
           }
    } 
</script>
</head>

<body>
<form name="frm" method="post" action="testtemplate_add.jsp">

<div class="MainDiv">
<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
  <tr>
      <th ><div class="titlebt">
        <div align="left">测试项选择</div>
      </div></th>
  </tr>
  <tr>
    <td height="0" >
        <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
        	<tr><td height="0" align="left"></td></tr>
        	<tr>
        		<td width="100%" height="222">
                <fieldset>
                <legend>测试项列表</legend>
               <table border="0" cellpadding="2" cellspacing="1" style="width:100%">
                <tr>
                 <td>
                  <%for (int i = 0;i < vctObj.size(); i++) {
		              String name = "";
		            	Testpjmanage obj1 = vctObj.get(i);
		            	if(obj1.getStrProjectName()!=null) name=obj1.getStrProjectName();
		            %>
                	 <input  type="checkbox" value="<%=name %>"  id="strProjectName" name="strProjectName" /><font size="2px"><%=name %></font><br/>
                     <%
                     }
                      %>
            	  </td>
          		</tr>
       		  </table>
              </fieldset>
              </td>
           </tr>
       </table>
     </td>
  </tr>
  <tr>
      <td colspan="2" align="center" height="28">
            <input type="button" name="b_submit" value="保存"  onclick="check();window.close();" style="cursor:hand" class="ipt1"/>
            <input type="button" name="b_reset"    value="重 置"  onclick="frm.reset();" style="cursor:hand" class="ipt2"/>
            <input type="button" name="b_back"     value="关 闭"   onclick="window.close();"style="cursor:hand" class="ipt2"/>
       </td>
  </tr>
 </table>
 </div>
</form>
</body>
</html>
<%@ include file="../include/jsp/footer.jsp"%>